﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MemberCostTotalList.aspx.cs" Inherits="ZHDJ.BranchCenter.Module.OrganizationalLife.MemberCostTotalList" %>

<!DOCTYPE html>
<html>
<head runat="server">
    <title></title>
    <style>
        a {
            text-transform: none;
            text-decoration: none;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
        <f:Panel ID="Panel1" runat="server" BodyPadding="5px"
            ShowBorder="false" Layout="VBox" BoxConfigAlign="Stretch"
            BoxConfigPosition="Start" ShowHeader="false" Title="">
            <Items>
                <f:Form ID="Form2" runat="server" Height="36px" BodyPadding="5px" ShowHeader="false"
                    ShowBorder="false">
                    <Rows>
                        <f:FormRow ID="FormRow1" runat="server">
                            <Items>

                                <f:DropDownList ID="ddlYear" LabelAlign="right" runat="server" Label="年" Width="180px">
                                </f:DropDownList>
                                <f:TriggerBoxPicker Label="所属组织" LabelAlign="right" Width="180px"
                                    runat="server" ID="ppBranch" ShowTrigger1="true" ShowTrigger2="true" Trigger1Icon="Clear"
                                    EnableEdit="false" WindinsTitle="选择所属组织"
                                    WindinsHeight="450px" EnableTrigger1PostBack="false"
                                    WindinsWidth="700px" WindinsUrl="../../../Share/Picker/BranchSinglePicker.aspx">
                                </f:TriggerBoxPicker>
                                <f:TextBox ID="txtTitle" runat="server" Label="党员" LabelAlign="right" Width="180px"></f:TextBox>


                                <f:Button ID="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click" IconAlign="Right"></f:Button>

                            </Items>
                        </f:FormRow>
                    </Rows>
                </f:Form>
                <f:Grid ID="GridTotal" runat="server" BoxFlex="1" ShowBorder="true" ShowHeader="false" EnableColumnLines="true"
                    EnableCheckBoxSelect="true" DataKeyNames="ID" AllowSorting="false" AllowColumnLocking="true"
                    OnSort="Grid1_Sort" SortField="ID" SortDirection="DESC" AllowPaging="true"
                    IsDatabasePaging="true" OnPreDataBound="Grid1_PreDataBound" OnRowCommand="Grid1_RowCommand"
                    OnPageIndexChange="Grid1_PageIndexChange">
                    <Toolbars>
                        <f:Toolbar ID="Toolbar1" runat="server">
                            <Items>
                                <f:Button ID="btnDeleteSelected" Hidden="true" Icon="Delete" runat="server" ConfirmText="确认要删除选中记录？" Text="删除选中记录" OnClick="btnDeleteSelected_Click">
                                </f:Button>
                                <f:ToolbarFill ID="ToolbarFill1" runat="server">
                                </f:ToolbarFill>
                                <f:Button ID="btnExport" runat="server" Icon="PageExcel" EnablePostBack="false" Text="导出">
                                </f:Button>
                                <f:Button ID="btnNew" Hidden="true" runat="server" Icon="Add" EnablePostBack="false" Text="新增">
                                </f:Button>
                            </Items>
                        </f:Toolbar>
                    </Toolbars>
                    <Columns>
                        <f:RowNumberField />
                         <f:BoundField DataField="BranchName" Locked="true"  Width="200px"   HeaderText="组织名称" />
                        <f:BoundField DataField="BranchMemberCount" Locked="true" Width="80px" TextAlign="Center" HeaderText="党员总数" />
                         
                        <f:GroupField HeaderText="1月" TextAlign="Center">
                            <Columns>
                                <f:BoundField Width="70px" DataField="M1MemberCount" HeaderText="人数" TextAlign="Center" />
                                <f:BoundField Width="70px" DataField="M1Cost" HeaderText="人数" TextAlign="Center" />
                            </Columns>
                        </f:GroupField>
                        
                          <f:GroupField HeaderText="2月" TextAlign="Center">
                            <Columns>
                                <f:BoundField Width="70px" DataField="M2MemberCount" HeaderText="人数" TextAlign="Center" />
                                <f:BoundField Width="70px" DataField="M2Cost" HeaderText="人数" TextAlign="Center" />
                            </Columns>
                        </f:GroupField>
                           <f:GroupField HeaderText="3月" TextAlign="Center">
                            <Columns>
                                <f:BoundField Width="70px" DataField="M3MemberCount" HeaderText="人数" TextAlign="Center" />
                                <f:BoundField Width="70px" DataField="M3Cost" HeaderText="人数" TextAlign="Center" />
                            </Columns>
                        </f:GroupField>
                           <f:GroupField HeaderText="4月" TextAlign="Center">
                            <Columns>
                                <f:BoundField Width="70px" DataField="M4MemberCount" HeaderText="人数" TextAlign="Center" />
                                <f:BoundField Width="70px" DataField="M4Cost" HeaderText="人数" TextAlign="Center" />
                            </Columns>
                        </f:GroupField>
                           <f:GroupField HeaderText="5月" TextAlign="Center">
                            <Columns>
                                <f:BoundField Width="70px" DataField="M5MemberCount" HeaderText="人数" TextAlign="Center" />
                                <f:BoundField Width="70px" DataField="M5Cost" HeaderText="人数" TextAlign="Center" />
                            </Columns>
                        </f:GroupField>
                           <f:GroupField HeaderText="6月" TextAlign="Center">
                            <Columns>
                                <f:BoundField Width="70px" DataField="M6MemberCount" HeaderText="人数" TextAlign="Center" />
                                <f:BoundField Width="70px" DataField="M6Cost" HeaderText="人数" TextAlign="Center" />
                            </Columns>
                        </f:GroupField>
                           <f:GroupField HeaderText="7月" TextAlign="Center">
                            <Columns>
                                <f:BoundField Width="70px" DataField="M7MemberCount" HeaderText="人数" TextAlign="Center" />
                                <f:BoundField Width="70px" DataField="M7Cost" HeaderText="人数" TextAlign="Center" />
                            </Columns>
                        </f:GroupField>
                           <f:GroupField HeaderText="8月" TextAlign="Center">
                            <Columns>
                                <f:BoundField Width="70px" DataField="M8MemberCount" HeaderText="人数" TextAlign="Center" />
                                <f:BoundField Width="70px" DataField="M8Cost" HeaderText="人数" TextAlign="Center" />
                            </Columns>
                        </f:GroupField>
                           <f:GroupField HeaderText="9月" TextAlign="Center">
                            <Columns>
                                <f:BoundField Width="70px" DataField="M9MemberCount" HeaderText="人数" TextAlign="Center" />
                                <f:BoundField Width="70px" DataField="M9Cost" HeaderText="人数" TextAlign="Center" />
                            </Columns>
                        </f:GroupField>
                         <f:GroupField HeaderText="10月" TextAlign="Center">
                            <Columns>
                                <f:BoundField Width="70px" DataField="M10MemberCount" HeaderText="人数" TextAlign="Center" />
                                <f:BoundField Width="70px" DataField="M10Cost" HeaderText="人数" TextAlign="Center" />
                            </Columns>
                        </f:GroupField>
                         <f:GroupField HeaderText="11月" TextAlign="Center">
                            <Columns>
                                <f:BoundField Width="70px" DataField="M11MemberCount" HeaderText="人数" TextAlign="Center" />
                                <f:BoundField Width="70px" DataField="M11Cost" HeaderText="人数" TextAlign="Center" />
                            </Columns>
                        </f:GroupField>
                         <f:GroupField HeaderText="12月" TextAlign="Center">
                            <Columns>
                                <f:BoundField Width="70px" DataField="M12MemberCount" HeaderText="人数" TextAlign="Center" />
                                <f:BoundField Width="70px" DataField="M12Cost" HeaderText="人数" TextAlign="Center" />
                            </Columns>
                        </f:GroupField>
                    </Columns>
                    <PageItems>
                        <f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
                        </f:ToolbarSeparator>
                        <f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数：">
                        </f:ToolbarText>
                        <f:DropDownList ID="ddlGridPageSize" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlGridPageSize_SelectedIndexChanged"
                            runat="server">
                            <f:ListItem Text="10" Value="10" />
                            <f:ListItem Text="20" Value="20" />
                            <f:ListItem Text="50" Value="50" />
                            <f:ListItem Text="100" Value="100" />
                        </f:DropDownList>
                    </PageItems>
                </f:Grid>
            </Items>
        </f:Panel>
        <f:Window ID="Window1" CloseAction="Hide" runat="server" IsModal="true" Hidden="true" Target="Top"
            EnableResize="true" EnableMaximize="true" EnableIFrame="true" IFrameUrl="about:blank"
            Width="600px" Height="250px" OnClose="Window1_Close">
        </f:Window>
        <f:Window ID="Window2" CloseAction="Hide" runat="server" IsModal="true" Hidden="true" Target="Top"
            EnableResize="true" EnableMaximize="true" EnableIFrame="true" IFrameUrl="about:blank"
            Width="600px" Height="250px" OnClose="Window1_Close">
        </f:Window>
    </form>
</body>
</html>
